package com.guoxin.chapter2.synchoronizedupdatenewvalue;

/**
 * @author guoxin
 * @date 2019年8月21日
 */
public class Run {
	public static void main(String[] args) throws InterruptedException {
		Service service = new Service();
		MyThreadA a = new MyThreadA(service);
		a.start();
		Thread.sleep(1000);
		MyThreadB b = new MyThreadB(service);
		b.start();
		System.out.println("已经发起停止的命令了！");
	}
}
